package com.hh.utils;

/**
 * author: 辉辉
 */
public class FastDFSUtil {
    /**
     * 解析 fastDFS 的路径参数 ** @return
     * host/xxxx
     */
    public static String parseGroup(String fullPath) {
        String[] paths = fullPath.split("/");
        if (paths.length <= 1) {
            throw new RuntimeException("参数错误，无法解析");
        }
        return paths[0];
    }
}
